package com.fz.mapper;

import com.fz.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by webrx on 2017-09-04.
 */
public interface BookMapper {
    @Select("select * from db_book")
    public List<Book> queryAll();

    @Delete("delete from db_book where id=#{id}")
    public int deleteById(int id);
}
